Arrow Vertigo

I want to submit the code for following link
CodeChef: Practical coding for everyone” help me in doing this