Verily interview question

Easy programming problem but a bit tricky.

Interview Answer

Anonymous

Sep 24, 2020

I solved it.