PTC interview question

N queens problem? Streams API