USB OTG or USB On-The-Go is a specification that allows mobile devices to share data with other devices through a…