Input:N = 1Output:1Explanation:A 1*1 chessboard has only 1 square.
Input:N = 2Output:5Explanation:A 2*2 chessboard has 5 squares.
4 1*1 squares and a 2*2 square.
You don't need to read input or print anything. Your task is to complete the function squaresInChessBoard() which takes an Integer N as input and returns the number of squares in a N*N chessboard.
Expected Time Complexity: O(1) Expected Auxiliary Space: O(1)