A Snail On Top of The Wall !
Read the question first!
Let's find out progress of snail day by day.
Day 1 : UP to 10, DOWN to 4
Day 2 : UP to 14, DOWN to 8
Day 3 : UP to 18, DOWN to 12
Day 4 : UP to 22 which is greater than 20.
So snail requires 4 days to reach the top of the wall.