Solutions to common interview questions