Amazon Interview Question

!. Write a program to validate a given arithmetic expression..