Why am I failing?

My logic is correct. still i am failing. Please help
link: https://ideone.com/Y5WICT

Hi @ayushjain.aj300, what are you trying to do here ? Can you pls share the question statement if available.