On a 2D plane, there are n points with integer coordinates points[i] = [xi, yi]. Return the minimum time in seconds to visit all the points in the order given by points.
You can move according to these rules:
1 second, you can either:
sqrt(2) units (in other words, move one unit vertically then one unit horizontally in 1 second).Example 1:

Input: points