Pregunta de entrevista de Publicis Sapient

One graphs problem And other is digit dp problem