Advance Algorithm problems