problem link
some cases are giving wa others are correct I guess some issue with handling double values