You can do this in Photoshop quite easily, just upload the photograph and go to Filters > Filter Gallery > Cutout (adjust the settings accordingly) and you'll get this effect. I'm not sure what version of Photoshop you have, but I know this works for the more recent editions.
This was my son's reply to your question. I hope it helps.