Pergunta de entrevista da empresa Cognizant

Logical question on snail climbing a wall. DBMS queries Programming questions of intermediate level