Yogesh,
You’d need to emulate a UART in software. We don’t have any software support for that.
I did find this repo in mbed
https://developer.mbed.org/users/Sissors/code/SoftSerial/
Sissors is pretty active in the mbed ecosystem and puts out a lot of good code. You could give that repo a try.
Cheers,
Mike