passed all the integer cases,
but memory error at 14th case.