Can you provide me this code

i don’t able to solve this question please provide me code my code is correct but my code did’n work in hackerblock