Accenture interview question

Write a java program to create a calculator with time complexity