adding problem statement and pseudocode approach