new file 1794.py
1794 new algo
Solve 1794