you give array coordinate coordinatesi x y x y represent coordinate point check point straight line xy plane Example 1input coordinate 122334455667output trueExample 2input coordinate 112234455677output false constraints2 coordinateslength 1000coordinatesilength 2104 coordinatesi0 coordinatesi1 104coordinates contain duplicate point