Algorithm functioning, still looks like we have 1 calculation error
Answer correct for testcase1