Java Programs for interview preparation