BrowserStack interview question

Print logs in reverse order