For a Junior 5 question, Escape Room isn’t that easy. The brute-force method would be to use breadth first search and find factors, but that will almost guarantee the time will exceed the limit. To solve this, we will need to use a method that doesn’t require any calculations involving…
