This repository is an algorithm problem that we received to solve in my university, but we (students) noticed that this code have many bugs with big numbers.