Manao solve problem follow statement he come solution produce correct answer slow you give pseudocode solution function getanswer calculate answer problemgetAnswera1n b1len h answer 0 1 nlen1 answer answer faiilen1 b h 1 return answerfs1len b1len h index index len1 return 1 1 len sindex bi h mem bi bi 0 re fs b h index 1 bi mem re 0 return 1 return 0your task help Manao optimize algorithm