Altimetrik interview question

some coding Q and then python based Q some Q on SQL