Convert Phone Records to Rows
Write phone_records_to_rows(contacts). Each dictionary key is a phone number and each value has name, age, and course. Return a list of records with those fields plus phone, preserving input order.
Examples
[{"9843":{"name":"Rabindra","age":30,"course":"Python"},"9844":{"name":"Hari","age":25,"course":"Java"}}][{"phone":"9843","name":"Rabindra","age":30,"course":"Python"},{"phone":"9844","name":"Hari","age":25,"course":"Java"}]