The pins of the STM Nucleo F401RE has been mapped for the convinience in the Arduino IDE.
A header file "f401reMap.h" is created which consists of a function "pinMap(Mapped_pin)" helps in taking the mapped pin number as an input and returs the actual pin number.