2 - TS Solution

2 - TS Solution