Sync

Algorithm:
1. Dynamic Programming