Here are a few hints to solve the problem listed here
When you need to solve slightly ambiguous problems like this one, follow a structured thought process.
- Read it carefully and explain the ask to someone else
- Represent the problem visually
- List what information you have and what else you would like
- For information missing can u make assumptions? Enumerate all possibilities
- Try solving with multiple approaches
Step #2 … representation
Step #3 & #4 …