All testcases are failing

question:
https://online.codingblocks.com/app/player/139185/content/134712/6279/code-challenge#
sol:


please help