Sourcetoad Assessment

Interactive solutions for Questions 1 & 2

Question 1: Display Nested Key-Value Pairs

Write a function to print out all nested key-value pairs at any level for easy display to the user.

Click "Display Nested Pairs" to see the results...

Question 2: Sort by Multiple Keys

Sort the data structure based on one or more keys regardless of what level they occur within the structure.

Available keys: guest_id, first_name, last_name, account_id, booking_number, room_no, etc.

Enter sort keys and click "Sort Data" to see the results...