This screen checks counting with a stated tie rule and a breadth-first search that starts from several places at once.
You have 45 minutes for two problems, as in a first-round online screen. The clock keeps running if you move between the problems or reload the page. Check runs every test, hidden ones included, but in a screen it does not show which tests failed, so test your own edge cases with Run first.
Budget about 20 minutes per problem and keep 5 for review. Read both problems before you start and begin with the one you can finish. When the time is up, restart the screen for a new attempt.
A 45-minute plan for two problems.