This is giving wrong answer one for test case… Please check why
Consider long long datatype and then try.