Pergunta de entrevista da empresa Cognizant

gave two coding questions first one in java for printing fibonacci numbers second one is in python for finding the max element between two numbers