Whenever you're ready, walk me through how you'd approach this.
Given a solution to a coding problem, explain its time complexity and space complexity. Walk through how you determine the dominant operations and justify the final Big O result.