Pergunta de entrevista da empresa Veeva Systems

backtracking question - it was to fit puzzle pieces onto an 2D array