2MNordic interview question

extract substring from json string without using any library. encrypt/decrypt string by adding offset to characters