Can i get the solution of this problem

code i tried is faling some test case

@anubhavb11 the code which you have submitted is getting All test case clear.