2015 RAM 1500 shifting issue

2015 ram trans shifting into gear ,d +r lights flash and dash tells you it is not in park, truck may start to move but its like brake is on

Sounds like either a software problem or the transmission has failed. Have it towed to the dealer.