Except for repeat, rest of them working fine for given test cases