Company: Adobe_12july
Difficulty: medium
Royal Game Master Problem Description In the kingdom of Arcadia, there was a centuries-old tradition of competitive games held during the Royal Tournament, and only the sharpest minds were allowed to participate. Little A and Little B, two childhood friends, decided to invent a game that would challenge the intellect of the kingdom's greatest strategists. This game, played on a chessboard, was designed to not only test strategic thinking but also to bring joy and excitement to those who witnessed it. The game was set on a 1xN chessboard, where K pawns were placed. The pawns came in two colours: white and black. Half of them were white and half were black. The white pawns were placed in alternating positions, starting from the leftmost square, and the black pawns were similarly placed but ended at the rightmost square. Little A, a brilliant strategist, was in charge of moving the white pawns, while his best friend Little B controlled the black pawns. However, the game wasn't as simple a