How to solve this?
In c++

Answer:
294 would probable be the right answer sorry if it's wrong