PayMaster interview question

Write program for simple intrest?