place white and black knights on 2x2 chessboard code example Example: place white and black knights on 2x2 chessboard Input: N = 2,M = 2 Output: 12