Programs for interview questions