FirstCry com interview question

Write Python Code using File handling