solutions for practice short interview questions