code i tried is faling some test case
@anubhavb11 the code which you have submitted is getting All test case clear.