Solutions to random interview-question type of questions