Pregunta de entrevista de Samsung Electronics

Fill the area inside the contour in boolean matrix